package com.cxyzy.glidedemo

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_pic.*

class CustModuleActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_pic)
        loadImage()
    }

    private fun loadImage() {
        val url = "https://c-ssl.duitang.com/uploads/item/201607/31/20160731024500_NrAkR.thumb.700_0.jpeg"
        GlideApp.with(this)
                .load(url)
                .into(imageView)
    }
}
